<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>数据网格之冻结行 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Frozen Rows in DataGrid">数据网格之冻结行</h2>
	<p title="This sample shows how to freeze some rows that will always be displayed at the top when the datagrid is scrolled down.">　　本例展示如何冻结一些行（当数据网格行向下滚动时总会被置顶显示，如下所示的前2行；左1列同时也被冻结）。注：PC垂直滚动条＝移动设备摁住可滚区域（第3行起及以下各行，滚动条不明显）后上下拖动或在模拟器中直接使用鼠标滚轮。</p>
	<div style="margin:20px 0;"></div>
	<table class="easyui-datagrid" title="<c>冻结行</c>" style="width:680px;height:260px"
			data-options="
				singleSelect: true,
				collapsible: true,
				rownumbers: true,
				url: 'datagrid_data1.json',
				method: 'get',
				onLoadSuccess: function(){
					$(this).datagrid('freezeRow',0).datagrid('freezeRow',1);
				}
			">
		<thead data-options="frozen:true">
			<tr>
				<th data-options="field:'itemid',halign:'center'"><h title='Item ID'>物料编码</h></th>
			</tr>
		</thead>
		<thead>
			<tr>
				<th data-options="field:'productid',halign:'right'"><h title='Product ID'>品</h></th>
				<th data-options="field:'productname'"><h title='Product Name'>名</h></th>
				<th data-options="field:'listprice',align:'right',halign:'center'"><h title='List Price'>清单价格</h></th>
				<th data-options="field:'unitcost',align:'right',halign:'center'"><h title='Unit Cost'>成本单价</h></th>
				<th data-options="field:'attr1',halign:'center'"><h title='Attribute'>物料属性</h></th>
				<th data-options="field:'status',align:'center'"><h title='Status'>状态</h></th>
			</tr>
		</thead>
	</table>

</body>
</html>